package com.enjoybyte.pangu.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCode {

    OK(200,"操作成功！"),
    BADREQUEST(400,"由于语法错误，服务器无法理解请求!"),
    UNAUTHORIZED(401,"请求需要进行身份验证!"),
    FORBIDDEN(403,"服务器理解请求但拒绝授权!"),
    NOTFOUND(404,"服务器无法找到请求的资源!"),
    METHODNOTALLOWED(405,"请求方法不被允许!"),
    ERROR(500,"服务器遇到了一个未曾预料的情况，导致其无法完成对请求的处理！"),
    ;

    private final Integer code;

    private final String msg;


}
